package com.situ.yB2C.sequnce.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import com.situ.yB2C.base.dao.BaseDao;
import com.situ.yB2C.sequnce.pojo.Sequnce;

@Repository
public interface SequnceDao extends BaseDao<Sequnce> {

	

	// #{} #｛｝预编译语句
	// ${} 拼字符串
	@Select("SELECT ${columnName} FROM TB_SEQUNCE ")
	Integer selectColumn(String columnName);

	@Update("UPDATE TB_SEQUNCE SET ${columnName} = #{number}")
	int updateColumn(@Param("columnName") String columnName, @Param("number") Integer number);
	
	
	//int insertColumn(@Param("columnName") String columnName, @Param("number") Integer number);
}
